#include<iostream>
#include<iomanip>
using namespace std;

int main() {
    double a, b;
    cin >> a >> b;
    double r = 1 / ((1 / a )+ (1 / b));
    cout << fixed << setprecision(2) << r << endl;

    return 0;
}